
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\usepackage{pgfplots.assert}

\begin{document}

\makeatletter

%\tracingmacros=2 \tracingcommands=2
\pgfplotscreateplotcyclelist{hotlist}{[colors of colormap={0,100,500,200,1000} of viridis]}%
% FIXME : verify!
\def\expected{\pgfplotscreateplotcyclelist {hotlist}{/tikz/color/.define={.}{rgb}{0.267,0.00487,0.32942},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.28073,0.14285,0.45726},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.12947,0.56505,0.54977},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.25317,0.26462,0.528},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.99297,0.90611,0.14384},/tikz/color=.,\\}}%
\pgfplotsassertequalstoknoexpand\expected\pgfplots@loc@TMPa{}

\pgfplotscreateplotcyclelist{hotlist}{[of colormap]}%
\def\expected{\pgfplotscreateplotcyclelist {hotlist}{/tikz/color/.define={.}{rgb}{0.0,0.0,1.0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1,1,0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1.0,0.5,0.0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1.0,0.0,0.0},/tikz/color=.,\\}}
\pgfplotsassertequalstoknoexpand\expected\pgfplots@loc@TMPa{}

\pgfplotscreateplotcyclelist{hotlist}{[of colormap=hot]}%
\def\expected{\pgfplotscreateplotcyclelist {hotlist}{/tikz/color/.define={.}{rgb}{0.0,0.0,1.0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1,1,0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1.0,0.5,0.0},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{1.0,0.0,0.0},/tikz/color=.,\\}}
\pgfplotsassertequalstoknoexpand\expected\pgfplots@loc@TMPa{}

\pgfplotscreateplotcyclelist{hotlist}{[indices of colormap={0,3,5,10} of viridis]}%
\def\expected{\pgfplotscreateplotcyclelist {hotlist}{/tikz/color/.define={.}{rgb}{0.267,0.00487,0.32942},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.26366,0.23763,0.51877},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.20862,0.36775,0.55267},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.12808,0.64775,0.5235},/tikz/color=.,\\}}
\pgfplotsassertequalstoknoexpand\expected\pgfplots@loc@TMPa{}

\pgfplotscreateplotcyclelist{hotlist}{[indices of colormap={0,1,2} of colormap/cool]}%
\def\expected{\pgfplotscreateplotcyclelist {hotlist}{/tikz/color/.define={.}{rgb}{0.99998,0.99998,0.99998},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.0,0.50195,0.99998},/tikz/color=.,\\/tikz/color/.define={.}{rgb}{0.99998,0.0,0.99998},/tikz/color=.,\\}}
\pgfplotsassertequalstoknoexpand\expected\pgfplots@loc@TMPa{}

\end{document}
